package com.wosai.register.util;

import java.util.LinkedHashMap;
import java.util.Map;

public class CollectionUtil {
    public static Map<String, Object> hashMap(Object... objects) {
        Map<String, Object> result = new LinkedHashMap<String, Object>();
        for(int i=0; i<objects.length/2; ++i) {
            result.put((String)objects[2*i], objects[2*i+1]);
        }
        return result;
    }
}
